FROM openjdk:17
ENV JAR_VERSION=""
ADD novel-gateway-*.jar /
ENV NACOS_ADDR=""

ENTRYPOINT sh -c 'java -jar -Dspring.cloud.nacos.config.server-addr=${NACOS_ADDR} -Dspring.cloud.nacos.discovery.server-addr=${NACOS_ADDR} novel-gateway-${JAR_VERSION}.jar'